mob
	proc // make evry thing below a proc
		Save() // name the prop
			var/savefile/F = new("PlayerSaves/[key].sav") // name the savefile and tell it what folder to put it in
			src.Write(F)
			F["x"] << src.x // save the players x
			F["y"] << src.y
			F["z"] << src.z
			src << "USER SAVED"
		Load() // name the proc
			var/savefile/F = new("PlayerSaves/[ckey].sav") // what savefile to load
			if(F) // if the file is there
				Read(F)
				F["x"] >> src.x // load the players x
				F["y"] >> src.y
				F["z"] >> src.z
				icon_load()
				src << "LOADED SAVE"

		icon_load() //if you want to load icons, made this for contents and shit.
			for(var/obj/C in contents) // looks for what you have
				contents += C // adds to your contents



mob
	Login() // call the login proc
		src.Load() // call the load proc
		..() // call the parent

	Logout()
		src.Save()
		..()




world
	proc
		auto_save()
			set background = 1
			save_char
			for(var/mob/M in world) // everyone in world
				M.Save()
				spawn(1000) goto save_char //Call autosave every minute


mob
	verb
		Save_Char()
			Save()